#!/bin/bash  
/etc/init.d/mysql start 
/usr/local/mysql/bin/mysqladmin -u root password 'root' 
mysql -uroot -proot -e "GRANT ALL PRIVILEGES on *.* to root@'%' IDENTIFIED by 'root' WITH GRANT OPTION ;"
/bin/bash 
